package com.snowcattle.game.service.uuid;

import org.springframework.stereotype.Service;

import java.util.concurrent.atomic.AtomicLong;

/**
 * sessionId生成器
 */
@Service
public class LongIdGenerator {

    protected AtomicLong idGenerator = new AtomicLong(0);

    public long generateId() {
        return idGenerator.incrementAndGet();
    }

}